# Contributor: 
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=iotop
pkgver=0.6
pkgrel=4
pkgdesc="I/O monitoring tool"
url="http://guichaz.free.fr/iotop/"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3"
depends_dev=""
makedepends="python3-dev py3-setuptools"
install=""
subpackages="$pkgname-doc"
source="http://guichaz.free.fr/iotop/files/iotop-$pkgver.tar.bz2
	fix-python.patch"

builddir="$srcdir"/iotop-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b1047da3bc46604447cc8ab22442a3a5381e1a79a6b176fe9ee8402ee5cebb959205407a6aeaffccccde9d2f67624ff8ee6717b051838f13ab88bf3a16db3ab9  iotop-0.6.tar.bz2
df5b09b20dc5ca3a8e73f39089f8ef2dbc5060b35178067a41ab1fd075922a860458611d5b0e7beb7aca8c9c5853998aeb7529dbccff9ef39daf17cd997cd698  fix-python.patch"
